package com.nh.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * NgAdmin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ng_admin")
public class NgAdmin extends BaseEntity{
	// Fields

	private String realEname;
	private String loginName;
	private String loginPassword;
	private Integer adminType;
	private Integer state; //状态 0启用  1停用  2删除 
	private String createadmin;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public NgAdmin() {
	}

	/** full constructor */
	public NgAdmin(String realEname, String loginName, String loginPassword, Integer adminType, Integer state, String createadmin) {
		this.realEname = realEname;
		this.loginName = loginName;
		this.loginPassword = loginPassword;
		this.adminType = adminType;
		this.state = state;
		this.createadmin = createadmin;
	}

	@Column(name = "real_ename", nullable = false, length = 40)
	public String getRealEname() {
		return this.realEname;
	}

	public void setRealEname(String realEname) {
		this.realEname = realEname;
	}

	@Column(name = "login_name", nullable = false, length = 40)
	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	@Column(name = "login_password", nullable = false, length = 40)
	public String getLoginPassword() {
		return this.loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}

	@Column(name = "admin_type", nullable = false)
	public Integer getAdminType() {
		return this.adminType;
	}

	public void setAdminType(Integer adminType) {
		this.adminType = adminType;
	}

	@Column(name = "state", nullable = false, length = 40)
	/**
	 * @return the state
	 */
	public Integer getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(Integer state) {
		this.state = state;
	}

	@Column(name = "createadmin", nullable = false, length = 40)
	public String getCreateadmin() {
		return this.createadmin;
	}

	

	public void setCreateadmin(String createadmin) {
		this.createadmin = createadmin;
	}

	/**
	 * @return the createTime
	 */
	public Timestamp getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}